package photobox.photo

class PhotoSize {

    Integer  width
    Integer  height
    float packingPrice //包装费

    def getName() {
        return "${width}英寸"
    }

    static mapping = {
        table 'pht_photo_size'
    }

    static constraints = {
        width unique: ['height']
    }
}
